Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
属性を参照してコンポーネントを取得するにはどうすればよいですか?
Button attribute1 = "@+myAttributes/one"/> //something like Button Button1 = (Button) findViewByattribute1(R.myAttributes.one);
次のコードで試してください。
Button buttonName = (Button) findViewById(R.id.yourButton);