mirror of
				https://github.com/fankes/termux-app.git
				synced 2025-10-25 13:19:21 +08:00 
			
		
		
		
	Fix xml files naming convention
This commit is contained in:
		| @@ -163,7 +163,7 @@ public final class TermuxActivity extends Activity implements ServiceConnection | ||||
|  | ||||
|         super.onCreate(savedInstanceState); | ||||
|  | ||||
|         setContentView(R.layout.termux_activity); | ||||
|         setContentView(R.layout.activity_termux); | ||||
|  | ||||
|         View content = findViewById(android.R.id.content); | ||||
|         content.setOnApplyWindowInsetsListener((v, insets) -> { | ||||
|   | ||||
| @@ -13,7 +13,7 @@ public class SettingsActivity extends AppCompatActivity { | ||||
|     @Override | ||||
|     protected void onCreate(Bundle savedInstanceState) { | ||||
|         super.onCreate(savedInstanceState); | ||||
|         setContentView(R.layout.settings_activity); | ||||
|         setContentView(R.layout.activity_settings); | ||||
|         if (savedInstanceState == null) { | ||||
|             getSupportFragmentManager() | ||||
|                 .beginTransaction() | ||||
|   | ||||
| @@ -32,7 +32,7 @@ public class TermuxSessionsListViewController extends ArrayAdapter<TerminalSessi | ||||
|     final StyleSpan italicSpan = new StyleSpan(Typeface.ITALIC); | ||||
|  | ||||
|     public TermuxSessionsListViewController(TermuxActivity activity, List<TerminalSession> sessionList) { | ||||
|         super(activity.getApplicationContext(), R.layout.terminal_sessions_list_item, sessionList); | ||||
|         super(activity.getApplicationContext(), R.layout.item_terminal_sessions_list, sessionList); | ||||
|         this.mActivity = activity; | ||||
|     } | ||||
|  | ||||
| @@ -43,7 +43,7 @@ public class TermuxSessionsListViewController extends ArrayAdapter<TerminalSessi | ||||
|         View sessionRowView = convertView; | ||||
|         if (sessionRowView == null) { | ||||
|             LayoutInflater inflater = mActivity.getLayoutInflater(); | ||||
|             sessionRowView = inflater.inflate(R.layout.terminal_sessions_list_item, parent, false); | ||||
|             sessionRowView = inflater.inflate(R.layout.item_terminal_sessions_list, parent, false); | ||||
|         } | ||||
|  | ||||
|         TextView sessionTitleView = sessionRowView.findViewById(R.id.session_title); | ||||
| @@ -58,7 +58,7 @@ public class TermuxSessionsListViewController extends ArrayAdapter<TerminalSessi | ||||
|  | ||||
|         if (isUsingBlackUI) { | ||||
|             sessionTitleView.setBackground( | ||||
|                 ContextCompat.getDrawable(mActivity, R.drawable.selected_session_background_black) | ||||
|                 ContextCompat.getDrawable(mActivity, R.drawable.session_background_black_selected) | ||||
|             ); | ||||
|         } | ||||
|  | ||||
|   | ||||
| @@ -42,7 +42,7 @@ public class TerminalToolbarViewPager { | ||||
|             LayoutInflater inflater = LayoutInflater.from(mActivity); | ||||
|             View layout; | ||||
|             if (position == 0) { | ||||
|                 layout = inflater.inflate(R.layout.terminal_toolbar_extra_keys_view, collection, false); | ||||
|                 layout = inflater.inflate(R.layout.view_terminal_toolbar_extra_keys, collection, false); | ||||
|                 ExtraKeysView extraKeysView = (ExtraKeysView) layout; | ||||
|                 mActivity.setExtraKeysView(extraKeysView); | ||||
|                 extraKeysView.reload(mActivity.getProperties().getExtraKeysInfo()); | ||||
| @@ -53,7 +53,7 @@ public class TerminalToolbarViewPager { | ||||
|                 } | ||||
|  | ||||
|             } else { | ||||
|                 layout = inflater.inflate(R.layout.terminal_toolbar_text_input_view, collection, false); | ||||
|                 layout = inflater.inflate(R.layout.view_terminal_toolbar_text_input, collection, false); | ||||
|                 final EditText editText = layout.findViewById(R.id.terminal_toolbar_text_input); | ||||
|  | ||||
|                 if(mSavedTextInput != null) { | ||||
|   | ||||
| @@ -5,7 +5,7 @@ | ||||
|     android:orientation="vertical"> | ||||
|  | ||||
|     <include | ||||
|         layout="@layout/toolbar_layout" | ||||
|         layout="@layout/partial_toolbar" | ||||
|         android:id="@+id/toolbar_layout"/> | ||||
|  | ||||
|     <androidx.recyclerview.widget.RecyclerView | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
|     android:id="@+id/session_title" | ||||
|     android:layout_width="fill_parent" | ||||
|     android:layout_height="?android:attr/listPreferredItemHeight" | ||||
|     android:background="@drawable/selected_session_background" | ||||
|     android:background="@drawable/session_background_selected" | ||||
|     android:ellipsize="marquee" | ||||
|     android:gravity="start|center_vertical" | ||||
|     android:padding="6dip" | ||||
		Reference in New Issue
	
	Block a user