我正在开发一个以listview开头的应用程序。在设置应用程序的主题时,我遇到了麻烦。材料设计可应用于Android5.0及以上版本。因此,我创建了一个值-21文件夹并创建了styles.xml,如下所示:
<resources>
<!-- Inherit from the light Material Theme -->
<style name="MyCustomTheme" parent="android:Theme.Material.Light">
<item name="android:c
当用户单击该按钮时,我的应用程序应该显示三个按钮。我该怎么做?动态布局能帮我做到这一点吗?
或者如果有别的办法,请给我建议。
public class MainActivity extends Activity {
/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity