当前位置: 首页>>代码示例>>Java>>正文


Java RelativeLayout.bringToFront方法代码示例

本文整理汇总了Java中android.widget.RelativeLayout.bringToFront方法的典型用法代码示例。如果您正苦于以下问题:Java RelativeLayout.bringToFront方法的具体用法?Java RelativeLayout.bringToFront怎么用?Java RelativeLayout.bringToFront使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.widget.RelativeLayout的用法示例。


在下文中一共展示了RelativeLayout.bringToFront方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreateView

import android.widget.RelativeLayout; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
						 Bundle savedInstanceState) {
	final View mRootView = inflater.inflate(R.layout.fragment_chat, container, false);
	LinearLayoutManager llm = new LinearLayoutManager(getContext());
	llm.setStackFromEnd(true);
	settings = new Settings(getContext());

	mSendText = (EditTextBackEvent) mRootView.findViewById(R.id.send_message_textview);
	mSendButton = (ImageView) mRootView.findViewById(R.id.chat_send_ic);
	mSlowmodeIcon = (ImageView) mRootView.findViewById(R.id.slowmode_ic);
	mSubonlyIcon = (ImageView) mRootView.findViewById(R.id.subsonly_ic);
	mR9KIcon = (ImageView) mRootView.findViewById(R.id.r9k_ic);
	mRecyclerView = (ChatRecyclerView) mRootView.findViewById(R.id.ChatRecyclerView);
	chatInputDivider = mRootView.findViewById(R.id.chat_input_divider);
	mChatInputLayout = (RelativeLayout) mRootView.findViewById(R.id.chat_input); mChatInputLayout.bringToFront();
	mChatStatus = (TextView) mRootView.findViewById(R.id.chat_status_text);
	mChatAdapter = new ChatAdapter(mRecyclerView, getActivity(), this);
	mChatStatusBar = (FrameLayout) mRootView.findViewById(R.id.chat_status_bar);

	mEmoteKeyboardButton = (ImageView) mRootView.findViewById(R.id.chat_emote_keyboard_ic);
	mEmoteChatBackspace = (ImageView) mRootView.findViewById(R.id.emote_backspace);
	emoteKeyboardContainer = (ViewGroup) mRootView.findViewById(R.id.emote_keyboard_container);
	mEmoteTabs = (TabLayout) mRootView.findViewById(R.id.tabs);
	mEmoteViewPager = (ViewPager) mRootView.findViewById(R.id.tabs_viewpager);
	selectedTabColorRes = Service.getColorAttribute(R.attr.textColor, R.color.black_text, getContext());
	unselectedTabColorRes = Service.getColorAttribute(R.attr.disabledTextColor, R.color.black_text_disabled, getContext());
	vibe = (Vibrator) getContext().getSystemService(Context.VIBRATOR_SERVICE);

	defaultBackgroundColor = mSendButton.getColorFilter();
	mRecyclerView.setAdapter(mChatAdapter);
	mRecyclerView.setLayoutManager(llm);
	mRecyclerView.setItemAnimator(null);

	mChannelInfo = getArguments().getParcelable(getString(R.string.stream_fragment_streamerInfo));// intent.getParcelableExtra(getResources().getString(R.string.intent_key_streamer_info));

	if (!settings.isLoggedIn()) {
		userNotLoggedIn();
	} else {
		setupChatInput();
		loadRecentEmotes();
		setupEmoteViews();
	}

	setupKeyboardShowListener();

	setupTransition();
	return mRootView;
}
 
开发者ID:SebastianRask,项目名称:Pocket-Plays-for-Twitch,代码行数:50,代码来源:ChatFragment.java


注:本文中的android.widget.RelativeLayout.bringToFront方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。