Skip to content
프로젝트

소개

Medium 안드로이드 앱은 게시물 상세 화면에 텍스트, 이미지, 동영상 등의 콘텐츠를 표시합니다. CMS에서 가져온 콘텐츠를 표시하는 작업은 번거로울 수 있어, 콘텐츠를 빠르게 보여 주는 View를 설계했습니다.

디자인 및 미디어

이 수치를 측정하는 방법

What you can do

  • Paragraph <p></p>
  • Image in <img/>
  • Video in IFrame <iframe></iframe>

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Medium Textview

Download

Medium android application displays content with text, image, video etc in post detail. It can be a pain to do it with content came from CMS. So i decided to design that View to display the content quickly. It's different to Webview.

Features

  • Paragraph <p></p>
  • Image in <img/>
  • Video in IFrame <iframe></iframe>

#Screenshot Screenshot

Usage

1. Add the following to your build.gradle.

dependencies {
  compile 'io.github.angebagui.mediumtextview:mediumtextview:1.0.1'
}

2. In my layout xml

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <io.github.angebagui.mediumtextview.MediumTextView
            android:id="@+id/medium_text_view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/activity_horizontal_margin"
            android:layout_marginBottom="@dimen/activity_vertical_margin"
            />
    </ScrollView>

3. Now in java code we set the content now

        MediumTextView mediumTextView = (MediumTextView)findViewById(R.id.medium_text_view);
        mediumTextView.setText(getContentHtml());

Licences

Copyright 2016 Ange Bagui.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

관련 프로젝트 살펴보기

불러오는 중…