title: How to get readable id of layout which send an intent?
body: <p>how can I get <strong>readable</strong> id of specyfic layout?</p>
  
  <p>Fragment of my activity_miejsce.xml file:</p>
  
  <pre><code>            &lt;LinearLayout
          android:id="@+id/elementPlace"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:background="@drawable/layout_main_menu_selector"
          android:clickable="true"
          android:onClick="Place"&gt;
  
          ...
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Activity for this layout:</p>
  
  <pre><code>public class PlacesActivity extends AppCompatActivity {
  
  LinearLayout element;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_places);
  
      element = (LinearLayout) findViewById(R.id.elementPlace);
  }
  
  public void Place(android.view.View v){
      Intent place = new Intent(this, Miejsce.class);
      place.putExtra("source", element.toString());
      startActivity(place);
  }}
  </code></pre>
  
  <p>Miejsce.java (destination of our intent):</p>
  
  <pre><code>    @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_miejsce);
  
      Intent src = getIntent();
      String source = src.getStringExtra("source");
  
      TextView msg = (TextView) findViewById(R.id.napis);
      msg.setText(getIntent().getStringExtra("source"));
  
      Toast.makeText(getApplicationContext(), "Source: " + source, Toast.LENGTH_SHORT).show();
  }
  </code></pre>
  
  <p>Result (from Toast): 
  Source: android.widget.LinearLayout{14e02738 V.E...C. ...P....0,165-1080,375#7f0c007e app:id/elementPlace}</p>
  
  <p>I want to use id of specyfic layout, because Miejsce.java will generate a layout which will depend on source. 
  For example: There are 3 layouts (hotel, petrol station, restaurant). User had clicked one of them (@+id/restaurant) and intent was sent with id of source (trigger). Java code generated specyfic layout with restaurant.</p>