當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。